<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/mqtt.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">mqtt.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;cstring&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &quot;<a class="el" href="../../da/d7b/debug_8hpp_source.html">debug.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d5/d27/mqtt_8hpp_source.html">mqtt.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
mqtt.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d51/mqtt_8cpp__incl.png" border="0" usemap="#asrc_2mqtt_8cpp" alt=""/></div>
<map name="asrc_2mqtt_8cpp" id="asrc_2mqtt_8cpp">
<area shape="rect" title=" " alt="" coords="258,5,352,32"/>
<area shape="rect" title=" " alt="" coords="359,304,427,331"/>
<area shape="poly" title=" " alt="" coords="346,30,380,49,396,62,408,79,420,106,427,134,428,193,418,247,406,290,401,289,413,246,423,192,422,135,415,107,404,81,392,66,377,53,343,35"/>
<area shape="rect" title=" " alt="" coords="137,80,198,107"/>
<area shape="poly" title=" " alt="" coords="282,35,206,75,204,70,280,30"/>
<area shape="rect" title=" " alt="" coords="221,80,290,107"/>
<area shape="poly" title=" " alt="" coords="298,34,275,69,270,66,294,31"/>
<area shape="rect" href="../../da/d7b/debug_8hpp.html" title=" " alt="" coords="314,80,395,107"/>
<area shape="poly" title=" " alt="" coords="316,31,339,66,335,69,311,34"/>
<area shape="rect" href="../../d5/d27/mqtt_8hpp.html" title=" " alt="" coords="134,155,206,181"/>
<area shape="poly" title=" " alt="" coords="258,24,223,29,187,39,154,56,127,81,122,96,125,111,146,142,142,145,120,114,117,96,123,79,151,52,185,34,222,24,257,19"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="613,80,687,107"/>
<area shape="poly" title=" " alt="" coords="353,27,598,78,597,84,352,33"/>
<area shape="rect" title=" " alt="" coords="776,379,853,405"/>
<area shape="poly" title=" " alt="" coords="158,184,144,199,132,218,126,237,131,255,148,272,172,289,238,317,322,339,417,356,609,378,760,386,760,392,609,383,416,362,321,344,237,322,170,293,145,276,127,257,121,237,127,215,140,196,154,180"/>
<area shape="rect" title=" " alt="" coords="470,229,524,256"/>
<area shape="poly" title=" " alt="" coords="207,175,456,230,455,235,206,180"/>
<area shape="rect" title=" " alt="" coords="350,229,396,256"/>
<area shape="poly" title=" " alt="" coords="206,179,336,225,334,230,205,184"/>
<area shape="rect" title=" " alt="" coords="5,229,66,256"/>
<area shape="poly" title=" " alt="" coords="148,184,74,224,71,219,145,180"/>
<area shape="rect" title=" " alt="" coords="142,229,199,256"/>
<area shape="poly" title=" " alt="" coords="173,182,173,214,168,214,168,182"/>
<area shape="rect" title=" " alt="" coords="222,229,326,256"/>
<area shape="poly" title=" " alt="" coords="190,180,245,218,242,222,187,184"/>
<area shape="poly" title=" " alt="" coords="689,100,765,121,811,138,860,159,908,186,954,219,994,257,1026,303,1032,325,1026,344,1010,359,987,370,929,384,869,391,868,386,928,379,985,365,1007,354,1022,341,1027,325,1021,305,990,261,950,223,905,191,858,164,809,143,763,126,687,105"/>
<area shape="poly" title=" " alt="" coords="646,108,624,144,592,183,565,206,536,224,533,219,562,201,588,179,620,141,641,106"/>
<area shape="rect" title=" " alt="" coords="940,304,1011,331"/>
<area shape="poly" title=" " alt="" coords="671,105,856,227,948,292,945,297,853,232,668,109"/>
<area shape="rect" title=" " alt="" coords="522,155,579,181"/>
<area shape="poly" title=" " alt="" coords="634,109,582,147,578,143,631,105"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="655,155,712,181"/>
<area shape="poly" title=" " alt="" coords="658,106,674,139,669,142,654,108"/>
<area shape="poly" title=" " alt="" coords="714,175,767,194,796,209,822,227,858,260,870,278,879,303,883,317,879,332,866,353,848,371,844,367,862,350,874,330,877,317,874,305,865,281,854,263,819,231,793,214,764,199,712,180"/>
<area shape="poly" title=" " alt="" coords="655,183,539,228,537,223,653,178"/>
<area shape="rect" title=" " alt="" coords="548,229,627,256"/>
<area shape="poly" title=" " alt="" coords="668,184,618,222,615,218,665,180"/>
<area shape="rect" title=" " alt="" coords="651,229,716,256"/>
<area shape="poly" title=" " alt="" coords="686,182,686,214,681,214,681,182"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="740,229,808,256"/>
<area shape="poly" title=" " alt="" coords="701,180,749,218,745,222,698,184"/>
<area shape="poly" title=" " alt="" coords="740,256,728,259,587,283,447,307,443,307,442,302,446,301,587,278,727,253,739,251"/>
<area shape="poly" title=" " alt="" coords="740,256,728,259,684,265,635,269,542,273,507,279,484,289,479,295,478,304,492,329,509,342,536,354,607,371,688,381,760,386,760,391,687,386,606,376,534,359,507,347,488,332,473,305,474,293,481,285,505,274,542,268,635,263,683,260,727,253,739,251"/>
<area shape="poly" title=" " alt="" coords="810,254,927,296,925,301,808,259"/>
<area shape="rect" title=" " alt="" coords="503,304,571,331"/>
<area shape="poly" title=" " alt="" coords="740,257,587,304,585,299,739,252"/>
<area shape="rect" title=" " alt="" coords="595,304,633,331"/>
<area shape="poly" title=" " alt="" coords="747,259,649,303,647,298,745,254"/>
<area shape="rect" title=" " alt="" coords="657,304,739,331"/>
<area shape="poly" title=" " alt="" coords="763,258,724,295,720,291,759,255"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="764,304,864,331"/>
<area shape="poly" title=" " alt="" coords="783,255,802,289,798,292,779,258"/>
<area shape="poly" title=" " alt="" coords="817,331,817,363,812,363,812,331"/>
</map>
</div>
</div>
<p><a href="../../d8/d5b/mqtt_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a1f0795cbda29e32b3d6f379c226726f3" id="r_a1f0795cbda29e32b3d6f379c226726f3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f0795cbda29e32b3d6f379c226726f3">msgarrvd</a> (void *context, char *topicName, int topicLen, MQTTClient_message *message)</td></tr>
<tr class="separator:a1f0795cbda29e32b3d6f379c226726f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a87ef47168dc639b307a285b8cb4462" id="r_a2a87ef47168dc639b307a285b8cb4462"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2a87ef47168dc639b307a285b8cb4462">connlost</a> (void *context, char *cause)</td></tr>
<tr class="separator:a2a87ef47168dc639b307a285b8cb4462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a79780b9057489f0740020d6bae250f" id="r_a4a79780b9057489f0740020d6bae250f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4a79780b9057489f0740020d6bae250f">delivered</a> (void *context, MQTTClient_deliveryToken dt)</td></tr>
<tr class="separator:a4a79780b9057489f0740020d6bae250f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a2a87ef47168dc639b307a285b8cb4462" name="a2a87ef47168dc639b307a285b8cb4462"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a87ef47168dc639b307a285b8cb4462">&#9670;&#160;</a></span>connlost()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void connlost </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>context</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>cause</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00034">34</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_cgraph.png" border="0" usemap="#ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_cgraph" alt=""/></div>
<map name="ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_cgraph" id="ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_cgraph">
<area shape="rect" title=" " alt="" coords="5,43,76,69"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#ad7447ba17575882ac4c7c286d82c2b27" title="onDisconnect" alt="" coords="155,5,286,48"/>
<area shape="poly" title=" " alt="" coords="76,48,140,37,141,42,76,53"/>
<area shape="rect" href="../../d3/d47/classwheels_1_1debug.html#a5fa52d8a6d24d2f6686055e7cefa04b6" title=" " alt="" coords="124,72,317,99"/>
<area shape="poly" title=" " alt="" coords="76,59,120,66,119,71,76,64"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_icgraph.png" border="0" usemap="#ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_icgraph" alt=""/></div>
<map name="ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_icgraph" id="ad8/d5b/mqtt_8cpp_a2a87ef47168dc639b307a285b8cb4462_icgraph">
<area shape="rect" title=" " alt="" coords="184,47,254,73"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#aa5e61c99c5000159df5ae7a8bef121ff" title="构造MQTT客户端。在默认情况下如果不指定MQTT协议的版本，以3.1.1版本尝试连接；如果练级失败会尝试以3.1连接，再次失败会以5.0版本尝试" alt="" coords="5,5,136,48"/>
<area shape="poly" title=" " alt="" coords="168,51,135,44,137,39,169,46"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#a70147cdf4f553bb2129e368d16d6cc27" title=" " alt="" coords="5,72,136,115"/>
<area shape="poly" title=" " alt="" coords="169,74,137,81,135,76,168,69"/>
</map>
</div>

</div>
</div>
<a id="a4a79780b9057489f0740020d6bae250f" name="a4a79780b9057489f0740020d6bae250f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a79780b9057489f0740020d6bae250f">&#9670;&#160;</a></span>delivered()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void delivered </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>context</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">MQTTClient_deliveryToken</td>          <td class="paramname"><span class="paramname"><em>dt</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00052">52</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d5b/mqtt_8cpp_a4a79780b9057489f0740020d6bae250f_icgraph.png" border="0" usemap="#ad8/d5b/mqtt_8cpp_a4a79780b9057489f0740020d6bae250f_icgraph" alt=""/></div>
<map name="ad8/d5b/mqtt_8cpp_a4a79780b9057489f0740020d6bae250f_icgraph" id="ad8/d5b/mqtt_8cpp_a4a79780b9057489f0740020d6bae250f_icgraph">
<area shape="rect" title=" " alt="" coords="184,47,257,73"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#aa5e61c99c5000159df5ae7a8bef121ff" title="构造MQTT客户端。在默认情况下如果不指定MQTT协议的版本，以3.1.1版本尝试连接；如果练级失败会尝试以3.1连接，再次失败会以5.0版本尝试" alt="" coords="5,5,136,48"/>
<area shape="poly" title=" " alt="" coords="168,51,135,44,136,39,169,46"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#a70147cdf4f553bb2129e368d16d6cc27" title=" " alt="" coords="5,72,136,115"/>
<area shape="poly" title=" " alt="" coords="169,74,136,81,135,76,168,69"/>
</map>
</div>

</div>
</div>
<a id="a1f0795cbda29e32b3d6f379c226726f3" name="a1f0795cbda29e32b3d6f379c226726f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f0795cbda29e32b3d6f379c226726f3">&#9670;&#160;</a></span>msgarrvd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int msgarrvd </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>context</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>topicName</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>topicLen</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">MQTTClient_message *</td>          <td class="paramname"><span class="paramname"><em>message</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00011">11</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_cgraph.png" border="0" usemap="#ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_cgraph" alt=""/></div>
<map name="ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_cgraph" id="ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_cgraph">
<area shape="rect" title=" " alt="" coords="5,47,81,73"/>
<area shape="rect" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html#a76cd2f25cc8ce95667c217e3e9fad0ff" title="从paho.mqtt构造对象" alt="" coords="129,5,259,48"/>
<area shape="poly" title=" " alt="" coords="80,49,113,42,114,47,82,54"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#ad8891a42152cd57b070ff9605d836013" title="处理接收到消息后的操作" alt="" coords="129,72,259,115"/>
<area shape="poly" title=" " alt="" coords="82,66,114,73,113,78,80,71"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_icgraph.png" border="0" usemap="#ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_icgraph" alt=""/></div>
<map name="ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_icgraph" id="ad8/d5b/mqtt_8cpp_a1f0795cbda29e32b3d6f379c226726f3_icgraph">
<area shape="rect" title=" " alt="" coords="184,47,259,73"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#aa5e61c99c5000159df5ae7a8bef121ff" title="构造MQTT客户端。在默认情况下如果不指定MQTT协议的版本，以3.1.1版本尝试连接；如果练级失败会尝试以3.1连接，再次失败会以5.0版本尝试" alt="" coords="5,5,136,48"/>
<area shape="poly" title=" " alt="" coords="168,51,136,44,137,39,169,46"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#a70147cdf4f553bb2129e368d16d6cc27" title=" " alt="" coords="5,72,136,115"/>
<area shape="poly" title=" " alt="" coords="169,74,137,81,136,76,168,69"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
